//index.js
//获取应用实例
const app = getApp()

Page({
  data: {

    detail: {},
  },

  onLoad: function (option) {
    this.requestDataList(option.id);
    
  },
  requestDataList: function (id) {
    var that = this;
    wx.showLoading({
      title: '读取中 ',
    })
    wx.request({
      url: app.appSetting.host + "world/GetWorldDetail?id=" + id,
      data: {
      },
      header: {
        'content-type': 'application/json' // 默认值
      },
      success: function (res) {

        wx.hideLoading();
        if (res.data.Status == 0) {
          //res.data.Result.Detail = app.convertHtmlToText(res.data.Result.Detail);
          that.setData({
            detail: res.data.Result,
          });
          wx.setNavigationBarTitle({
            title: res.data.Result.Title
          })
        } else {
          app.showMsg(res.data.Message);
        }

      }
    })
  },

})
